package com.nttuan.service2;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * Created by TuanNT on 12/14/2014.
 */
public class BootReceive extends BroadcastReceiver{
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d("BootReceive","called");
        Intent intentAlarm = new Intent(context, AlarmService.class);
        Intent intentGet = new Intent(context, GetService.class);
        Intent intentNotification = new Intent(context, NotificationService.class);
        context.startService(intentAlarm);
        context.startService(intentGet);
        context.startService(intentNotification);
    }
}
